<?php

use App\Admin\Controllers\MessagesController;
use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {
    $router->get('/', 'HomeController@index')->name('home');
    $router->resource('/messages', 'MessagesController');
    $router->resource('/layers', 'LayersController');
    $router->resource('/news', 'NewsController');
    $router->resource('/cases', 'CaseController');
    $router->resource('/domains', 'DomainController');
    $router->resource('/config/images', 'ConfigImagesController');
    $router->resource('/config/text', 'ConfigTextController');
    $router->resource('/config/rich_text', 'ConfigRichTextController');
});
